package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;
import cn.sumpu.app.guoguojie.domain.DoingPictorial;
import cn.sumpu.app.guoguojie.domain.DoingPictorialVisit;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface PictorialDao {
    public void insertPictorial(DoingPictorial pictorial) throws AppBusinessException;

    public void updatePictorial(DoingPictorial pictorial) throws AppBusinessException;

    public List<DoingPictorial> getPictorialList(Map<String, Object> map) throws AppBusinessException;

    public int getPictorialListCount(Map<String, Object> map) throws AppBusinessException;

    public int getExistPicpro(Map<String, Object> map) throws AppBusinessException;

    public void deletePictorial(Map<String, Object> map) throws AppBusinessException;

    public void deleteDoingByPic(Map<String, Object> map) throws AppBusinessException;

    public void deletePictureByPic(Map<String, Object> map) throws AppBusinessException;

    public void deleteProductByPic(Map<String, Object> map) throws AppBusinessException;

    //查询访问画报的人集合
    public List<DoingPictorialVisit> selectPictorialVisitList(Map<String, Object> map) throws AppBusinessException;

    //查询访问的人
    public DoingPictorialVisit selectVisitor(DoingPictorialVisit doingPictorialVisit) throws AppBusinessException;

    //更新已经访问画报的信息
    public void updatePictorialVisit(DoingPictorialVisit doingPictorialVisit) throws AppBusinessException;

    //插入访问画报的信息
    public void insertPictorialVisit(DoingPictorialVisit doingPictorialVisit) throws AppBusinessException;

    //替换访问记录
    public void updateNewVisit(DoingPictorialVisit doingPictorialVisit) throws AppBusinessException;

    //查询推荐的画报
    List<DoingPictorial> getPictorialByChannel(Map<String, Object> map) throws AppBusinessException;

    //查询推荐的画报的总记录数
    Integer getPictorialCountByChannel(Map<String, Object> map) throws AppBusinessException;

    //查询每个分类推荐的第一个
    List<DoingPictorial> getHotPictorialNo1(Map<String, Object> map) throws AppBusinessException;

    //查询最新的画报
    List<DoingPictorial> getPictorialNew(Map<String, Object> map) throws AppBusinessException;

    //查询最新的画报的总记录数
    Integer getPictorialCountNew(Map<String, Object> map) throws AppBusinessException;

    //查询前N条画报记录
    List<DoingPictorial> getPictorialBruce(Map<String, Object> map) throws AppBusinessException;

}
